// 命名空间
// var club = {};
var club = club || {};
// 所有代码
club.path = 'modules/main/club/';
club.srcPath = club.path + 'src/';
club.src = [
    //基础功能代码
    club.srcPath + 'tools/ClubEvent.js',
    club.srcPath + 'tools/ClubMsgCode.js',
    club.srcPath + 'tools/ClubMsgManager.js',
    club.srcPath + 'tools/ClubDataManager.js',
    club.srcPath + 'tools/ClubLiaoBeiUnit.js',
    club.srcPath + 'tools/DropDownMenu.js',
    club.srcPath + 'tools/ClubPowerDate.js',
    club.srcPath + 'tools/ClubViewUtil.js',
    //亲友圈入口
    club.srcPath + 'ClubBoard.js',
    //亲友圈选择
    club.srcPath + 'ClubMain/ClubMainWindow.js',
    club.srcPath + 'ClubMain/ClubMainItem.js',
    club.srcPath + 'ClubMain/ClubMessageWindow.js',
    club.srcPath + 'ClubMain/ClubMessageItem.js',
    //牌桌相关
    club.srcPath + 'ClubTable/ClubTableWindow.js',
    club.srcPath + 'ClubTable/ClubShowRoomUnit.js',
    club.srcPath + 'ClubTable/ClubSelectWanfaUnit.js',
    club.srcPath + 'ClubTable/ClubReturnRoomUnit.js',
    club.srcPath + 'ClubTable/ClubNoticeUnit.js',
    club.srcPath + 'ClubTable/ClubInfoUnit.js',
    club.srcPath + 'ClubTable/ClubTableItem.js',
    club.srcPath + 'ClubTable/ClubQuickJoinWindow.js',
    club.srcPath + 'ClubTable/ClubJoinRoomTipsWindow.js',
    club.srcPath + 'ClubTable/ClubTableMemberUnit.js',
    club.srcPath + 'ClubTable/ClubTableMemberUnitItem.js',
    club.srcPath + 'ClubTable/ClubBlendQuickJoinWindow.js',
    club.srcPath + 'ClubTable/ClubInviteWindow.js',
    club.srcPath + 'ClubTable/ClubJoinOrInviteWindow.js',
    club.srcPath + 'ClubTable/ClubWanFaDetailsWindow.js',
    club.srcPath + 'ClubTable/ClubTableInfoWindow.js',
    //设置界面
    club.srcPath + 'ClubTable/ClubSetting/ClubDisbandSettingWindow.js',
    club.srcPath + 'ClubTable/ClubSetting/ClubSettingWindow.js',
    club.srcPath + 'ClubTable/ClubSetting/ClubChangeNameWindow.js',
    club.srcPath + 'ClubTable/ClubSetting/ClubChangeNoticeWindow.js',
    club.srcPath + 'ClubTable/ClubSetting/ClubBlendWanfaSettingWindow.js',
    //成员界面
    club.srcPath + 'ClubMember/ClubMemberWindow.js',
    club.srcPath + 'ClubMember/ClubMemberItem2.js',
    //统计界面相关代码
    club.srcPath + 'ClubStatistics/ClubRecordFilter.js',
    club.srcPath + 'ClubStatistics/ClubUserDataTab.js',
    club.srcPath + 'ClubStatistics/ClubStatisticsWindow.js',
    club.srcPath + 'ClubStatistics/ClubUserEditScoreWindow.js',
    club.srcPath + 'ClubStatistics/ClubZhiDingUesrRecordWindow.js',
    club.srcPath + 'ClubStatistics/RecordDetailsWindow.js',
    club.srcPath + 'ClubStatistics/ClubFloorsWanfaFilterWindow.js',
    club.srcPath + 'ClubStatistics/ClubEditScore.js',
    club.srcPath + 'ClubStatistics/Tab/ClubMyRecordTab.js',
    club.srcPath + 'ClubStatistics/Tab/ClubRecordTab.js',
    club.srcPath + 'ClubStatistics/Tab/ClubRankingTab.js',
    club.srcPath + 'ClubStatistics/Tab/ClubDataOverviewTab.js',
    club.srcPath + 'ClubStatistics/Item/ClubMyRecordItem.js',
    club.srcPath + 'ClubStatistics/Item/ClubRecordItem.js',
    club.srcPath + 'ClubStatistics/Item/ClubRankingItem.js',
    club.srcPath + 'ClubStatistics/Item/ClubDataOverviewItem.js',
    club.srcPath + 'ClubStatistics/Item/ClubUserItem.js',
    club.srcPath + 'ClubStatistics/Item/ClubZhiDingUesrRecordItem.js',
    // club.srcPath + 'ClubStatistics/Tab/ClubUserDataTab.js',
    //小助手相关
    club.srcPath + 'ClubAssistant/ClubAssistantUnit.js',
    club.srcPath + 'ClubAssistant/ClubAssistantInviteItem.js',
    club.srcPath + 'ClubAssistant/ClubRoomInviteMemberWindow.js',
    club.srcPath + 'ClubAssistant/ClubAssistantInviteWindow.js',
    //管理界面相关
    club.srcPath + 'ClubManagement/ClubManagementWindow.js',
    club.srcPath + 'ClubManagement/ClubMemberSettingWindow.js',
    club.srcPath + 'ClubManagement/ClubGroupWindow.js',
    club.srcPath + 'ClubManagement/ClubGroupChangNameWindow.js',
    club.srcPath + 'ClubManagement/ClubQuickGroupingWIndow.js',
    club.srcPath + 'ClubManagement/Tab/ClubMemberManagerTab.js',
    club.srcPath + 'ClubManagement/Tab/ClubRoomManagerTab.js',
    club.srcPath + 'ClubManagement/Tab/ClubApplyMsgTab.js',
    club.srcPath + 'ClubManagement/Tab/ClubMemberLogTab.js',
    club.srcPath + 'ClubManagement/Tab/ClubMergeTab.js',
    club.srcPath + 'ClubManagement/Item/ClubMemberItem.js',
    club.srcPath + 'ClubManagement/Item/ClubRoomItem.js',
    club.srcPath + 'ClubManagement/Item/ClubApplyItem.js',
    club.srcPath + 'ClubManagement/Item/ClubMemberLogItem.js',
    club.srcPath + 'ClubManagement/Item/ClubGroupItem.js',
    club.srcPath + 'ClubManagement/Item/ClubQuickGroupingItem.js',
    club.srcPath + 'ClubManagement/Item/ClubMergeItem.js',
    //通用公共类
    club.srcPath + 'ClubCommon/ClubInputWindow.js',
    club.srcPath + 'ClubCommon/ClubHelpWindow.js',
    //分组
    club.srcPath + 'ClubGroup/ClubGroup_MainWindow.js',
    club.srcPath + 'ClubGroup/Tab/ClubGroup_Hequnshuju.js',
    club.srcPath + 'ClubGroup/Tab/ClubGroup_Hehuorenchengyuan.js',
    club.srcPath + 'ClubGroup/Tab/ClubGroup_Chengyuanfenpei.js',
    club.srcPath + 'ClubGroup/Tab/ClubGroup_Hequnrizhi.js',
    club.srcPath + 'ClubGroup/Item/ClubGroup_Hequnshuju_Item.js',
    club.srcPath + 'ClubGroup/Item/ClubGroup_Hehuorenchengyuan_Item.js',
    club.srcPath + 'ClubGroup/Item/ClubGroup_Chengyuanfenpei_Item.js',
    club.srcPath + 'ClubGroup/Item/ClubGroup_Hequnrizhi_Item.js',
    //设置
    club.srcPath + 'ClubTable/ClubSetting/ClubBaseSetting.js',
    club.srcPath + 'ClubTable/ClubSetting/ClubDismiss.js',
    club.srcPath + 'ClubTable/ClubSetting/ClubNoCreateTable.js',
    club.srcPath + 'ClubTable/ClubSetting/ClubNoTogether.js',
    club.srcPath + 'ClubTable/ClubSetting/ClubQuit.js',
    //旧代码
    club.srcPath + 'ClubShowTimeLayer.js',
    club.srcPath + 'ClubSetZhanBangTime.js',
    club.srcPath + 'ClubTimeLayer.js',
    club.srcPath + 'GuideLayer.js',
];

// 所有资源
club.resPath = club.path + 'res/';
club.res = {
    ClubBoard_json: club.resPath + 'ClubBoard.json',

    ClubMainWindow_json: club.resPath + 'ClubMain/ClubMainWindow.json',
    ClubMainItem_json: club.resPath + 'ClubMain/ClubMainItem.json',
    ClubMessageWindow_json: club.resPath + 'ClubMain/ClubMessageWindow.json',
    ClubMessageItem_json: club.resPath + 'ClubMain/ClubMessageItem.json',
    //牌桌相关
    ClubTableWindow_json: club.resPath + 'ClubTable/ClubTableWindow.json',
    ClubShowRoomUnit_json: club.resPath + 'ClubTable/ClubShowRoomUnit.json',
    ClubSelectWanfaUnit_json: club.resPath + 'ClubTable/ClubSelectWanfaUnit.json',
    ClubReturnRoomUnit_json: club.resPath + 'ClubTable/ClubReturnRoomUnit.json',
    ClubNoticeUnit_json: club.resPath + 'ClubTable/ClubNoticeUnit.json',
    ClubInfoUnit_json: club.resPath + 'ClubTable/ClubInfoUnit.json',
    ClubTableItemUnit_json: club.resPath + 'ClubTable/ClubTableItem.json',
    ClubQuickJoinWindow_json: club.resPath + 'ClubTable/ClubQuickJoinWindow.json',
    ClubJoinRoomTipsWindow_json: club.resPath + 'ClubTable/ClubJoinRoomTipsWindow.json',
    ClubTableMemberUnit_json: club.resPath + 'ClubTable/ClubTableMemberUnit.json',
    ClubTableMemberUnitItem_json: club.resPath + 'ClubTable/ClubTableMemberUnitItem.json',
    ClubBlendQuickJoinWindow_json: club.resPath + 'ClubTable/ClubBlendQuickJoinWindow.json',
    ClubInviteWindow_json: club.resPath + 'ClubTable/ClubInviteWindow.json',
    ClubJoinOrInviteWindows_json: club.resPath + 'ClubTable/ClubJoinOrInviteWindow.json',
    ClubWanFaDetailsWindow_json: club.resPath + 'ClubTable/ClubWanFaDetailsWindow.json',
    ClubTableInfoUnit_json: club.resPath + 'ClubTable/ClubTableInfoUnit.json',
    //亲友圈设置界面
    ClubDisbandSettingWindow_json: club.resPath + 'ClubTable/ClubSetting/ClubDisbandSettingWindow.json',
    ClubSettingWindow_Old_json: club.resPath + 'ClubTable/ClubSetting/ClubSettingWindow_Old.json',
    ClubSettingWindow_json: club.resPath + 'ClubTable/ClubSetting/ClubSettingWindow.json',
    ClubBaseSetting_json: club.resPath + 'ClubTable/ClubSetting/ClubSettingWindow/SettingContent/ClubBaseSetting.json',
    ClubDismiss_json: club.resPath + 'ClubTable/ClubSetting/ClubSettingWindow/SettingContent/ClubDismiss.json',
    ClubNoCreateTable_json: club.resPath + 'ClubTable/ClubSetting/ClubSettingWindow/SettingContent/ClubNoCreateTable.json',
    ClubNoTogether_json: club.resPath + 'ClubTable/ClubSetting/ClubSettingWindow/SettingContent/ClubNoTogether.json',
    ClubQuit_json: club.resPath + 'ClubTable/ClubSetting/ClubSettingWindow/SettingContent/ClubQuit.json',
    ClubChangeNameWindow_json: club.resPath + 'ClubTable/ClubSetting/ClubChangeNameWindow.json',
    ClubChangeNoticeWindow_json: club.resPath + 'ClubTable/ClubSetting/ClubChangeNoticeWindow.json',
    ClubBlendWanfaSettingWindow_json: club.resPath + 'ClubTable/ClubSetting/ClubBlendWanfaSettingWindow.json',
    //成员相关
    ClubMemberWindow_json: club.resPath + 'ClubMember/ClubMemberWindow.json',
    ClubMemberItem2_json: club.resPath + 'ClubMember/ClubMemberItem2.json',
    //管理界面相关
    ClubManagementWindow_json: club.resPath + 'ClubManagement/ClubManagementWindow.json',
    ClubMemberSettingWindow_json: club.resPath + 'ClubManagement/ClubMemberSettingWindow.json',
    ClubGroupWindow_json: club.resPath + 'ClubManagement/ClubGroupWindow.json',
    ClubGroupChangNameWindow_json: club.resPath + 'ClubManagement/ClubGroupChangNameWindow.json',
    ClubQuickGroupingWIndow_json: club.resPath + 'ClubManagement/ClubQuickGroupingWIndow.json',
    ClubMemberManagerTab_json: club.resPath + 'ClubManagement/Tab/ClubMemberManagerTab.json',
    ClubRoomManagerTab_json: club.resPath + 'ClubManagement/Tab/ClubRoomManagerTab.json',
    ClubApplyMsgTab_json: club.resPath + 'ClubManagement/Tab/ClubApplyMsgTab.json',
    ClubMemberLogTab_json: club.resPath + 'ClubManagement/Tab/ClubMemberLogTab.json',
    ClubMergeTab_json: club.resPath + 'ClubManagement/Tab/ClubMergeTab.json',
    ClubMemberItem1_json: club.resPath + 'ClubManagement/Item/ClubMemberItem.json',
    ClubRoomItem_json: club.resPath + 'ClubManagement/Item/ClubRoomItem.json',
    ClubApplyItem_json: club.resPath + 'ClubManagement/Item/ClubApplyItem.json',
    ClubGroupItem_json: club.resPath + 'ClubManagement/Item/ClubGroupItem.json',
    ClubQuickGroupingItem_json: club.resPath + 'ClubManagement/Item/ClubQuickGroupingItem.json',
    ClubMergeItem_json: club.resPath + 'ClubManagement/Item/ClubMergeItem.json',
    ClubMemberLogItem_json: club.resPath + 'ClubManagement/Item/ClubMemberLogItem.json',
    ClubDataOverviewItem_json: club.resPath + 'ClubStatistics/Item/ClubDataOverviewItem.json',
    ClubUserItem_json: club.resPath + 'ClubStatistics/Item/ClubUserItem.json',
    ClubZhiDingUesrRecordItem_json: club.resPath + 'ClubStatistics/Item/ClubZhiDingUesrRecordItem.json',
    //统计界面csd
    ClubUserDataTab_json: club.resPath + 'ClubStatistics/ClubUserDataTab1.json',
    ClubUserEditScoreWindow_json: club.resPath + 'ClubStatistics/ClubUserEditScoreWindow.json',
    ClubZhiDingUesrRecordWindow_json: club.resPath + 'ClubStatistics/ClubZhiDingUesrRecordWindow.json',
    dropDownMenuBtn: club.resPath + 'club/ClubStatisticsLayer/btn_select.png',
    dropDownMenuTopBack: club.resPath + 'club/ClubStatisticsLayer/menu_topBack.png',
    dropDownMenuBack1: club.resPath + 'club/ClubStatisticsLayer/menu_back1.png',
    dropDownMenuBack2: club.resPath + 'club/ClubStatisticsLayer/menu_back2.png',
    dropDownMenuBack3: club.resPath + 'club/ClubStatisticsLayer/menu_back3.png',
    dropDownMenuBack4: club.resPath + 'club/ClubStatisticsLayer/menu_back4.png',


    ClubStatisticsWindow_json: club.resPath + 'ClubStatistics/ClubStatisticsWindow.json',
    RecordDetailsWindow_json: club.resPath + 'ClubStatistics/RecordDetailsWindow.json',
    ClubFloorsWanfaFilterWindow_json: club.resPath + 'ClubStatistics/ClubFloorsWanfaFilterWindow.json',
    ClubMyRecordTab_json: club.resPath + 'ClubStatistics/Tab/ClubMyRecordTab.json',
    ClubRecordTab_json: club.resPath + 'ClubStatistics/Tab/ClubRecordTab.json',
    ClubRankingTab_json: club.resPath + 'ClubStatistics/Tab/ClubRankingTab.json',
    ClubCustomTab_json: club.resPath + 'ClubStatistics/Tab/ClubCustomTab.json',
    ClubDataOverviewTab1_json: club.resPath + 'ClubStatistics/Tab/ClubDataOverviewTab.json',
    ClubUserDataTab1_json: club.resPath + 'ClubStatistics/Tab/ClubUserDataTab.json',
    ClubMyRecordItem_json: club.resPath + 'ClubStatistics/Item/ClubMyRecordItem.json',
    ClubRecordItem_json: club.resPath + 'ClubStatistics/Item/ClubRecordItem.json',
    ClubRankingItem_json: club.resPath + 'ClubStatistics/Item/ClubRankingItem.json',

    //分组管理
    ClubGroup_MainWindow_json: club.resPath + 'ClubGroup/ClubGroup_MainWindow.json',
    ClubGroup_Hequnshuju_json: club.resPath + 'ClubGroup/Tab/ClubGroup_Hequnshuju.json',
    ClubGroup_Hehuorenchengyuan_json: club.resPath + 'ClubGroup/Tab/ClubGroup_Hehuorenchengyuan.json',
    ClubGroup_Chengyuanfenpei_json: club.resPath + 'ClubGroup/Tab/ClubGroup_Chengyuanfenpei.json',
    ClubGroup_Hequnrizhi_json: club.resPath + 'ClubGroup/Tab/ClubGroup_Hequnrizhi.json',
    ClubGroup_Hequnshuju_Item_json: club.resPath + 'ClubGroup/Item/ClubGroup_Hequnshuju_item.json',
    ClubGroup_Hehuorenchengyuan_Item_json: club.resPath + 'ClubGroup/Item/ClubGroup_Hehuorenchengyuan_item.json',
    ClubGroup_Chengyuanfenpei_Item_json: club.resPath + 'ClubGroup/Item/ClubGroup_Chengyuanfenpei_item.json',
    ClubGroup_Hequnrizhi_Item_json: club.resPath + 'ClubGroup/Item/ClubGroup_Hequnrizhi_item.json',

    //小助手
    ClubAssistantUnit_json: club.resPath + 'ClubAssistant/ClubAssistantUnit.json',
    ClubAssistantInviteWindow_json: club.resPath + 'ClubAssistant/ClubAssistantInviteWindow.json',
    ClubAssistantInviteItem_json: club.resPath + 'ClubAssistant/ClubAssistantInviteItem.json',
    ClubRoomInviteMemberWindow_json: club.resPath + 'ClubAssistant/ClubRoomInviteMemberWindow.json',

    //公共类界面
    ClubInputWindow_json: club.resPath + 'ClubCommon/ClubInputWindow.json',
    ClubHelpWindow_json: club.resPath + 'ClubCommon/ClubHelpWindow.json',


    ClubEditScore_json: club.resPath + 'ClubEditScore.json',
    RecordItem_json: club.resPath + 'RecordItem.json',
    ClubAlert_json: club.resPath + 'ClubAlert.json',
    ClubMsgLayer_json: club.resPath + 'ClubMsgLayer.json',
    ClubPowerDate_json: club.resPath + 'ClubPowerDate.json',
    ClubShowTimeLayer_json: club.resPath + 'ClubShowTimeLayer.json',
    ClubDYYLayer_json: club.resPath + 'ClubDYYLayer.json',
    ClubTimeUnit_json: club.resPath + 'ClubTimeUnitLayer.json',
    TishiClub_json: club.resPath + 'ClubAlert.json',
    ClubMsgItem_json: club.resPath + 'ClubMsgItem.json',
    ClubSetTimeLayer_json: club.resPath + 'ClubSetTimeLayer.json',

    powerN1_fnt: club.resPath + 'club/PowerManage/n1.fnt',
    powerN1_png: club.resPath + 'club/PowerManage/n1.png',
    powerN2_fnt: club.resPath + 'club/PowerManage/n2.fnt',
    powerN2_png: club.resPath + 'club/PowerManage/n2.png',

    clubFloor4: club.resPath + 'floor/icon_floor1.png',
    clubFloor3: club.resPath + 'floor/icon_floor2.png',
    clubFloor2: club.resPath + 'floor/icon_floor3.png',
    clubFloor1: club.resPath + 'floor/icon_floor4.png',
    quickFloor1: club.resPath + 'floor/floor1.png',
    quickFloor2: club.resPath + 'floor/floor2.png',
    quickFloor3: club.resPath + 'floor/floor3.png',
    quickFloor4: club.resPath + 'floor/floor4.png',
    quickFloorUn4: club.resPath + 'floor/floor_un4.png',
    quickFloorUn3: club.resPath + 'floor/floor_un3.png',
    quickFloorUn2: club.resPath + 'floor/floor_un2.png',
    quickFloorUn1: club.resPath + 'floor/floor_un1.png',

    quickSelectBack: club.resPath + 'table/back_wanfa.png',
    quickSelectUnBack: club.resPath + 'table/back_un.png',


    transparent113: club.resPath + 'transparent/transparent_113x113.png',
    transparent150X40: club.resPath + 'transparent/transparent_150X40.png',
    transparent64: club.resPath + 'transparent/transparent_64x64.png',

    club_table_for2_c1: club.resPath + 'table/table_for_2_c1.png',
    club_table_for3_c1: club.resPath + 'table/table_for_3_c1.png',
    club_table_for4_c1: club.resPath + 'table/table_for_4_c1.png',
    club_table_for2_c2: club.resPath + 'table/table_for_2_c2.png',
    club_table_for3_c2: club.resPath + 'table/table_for_3_c2.png',
    club_table_for4_c2: club.resPath + 'table/table_for_4_c2.png',
    club_table_for2_c3: club.resPath + 'table/table_for_2_c3.png',
    club_table_for3_c3: club.resPath + 'table/table_for_3_c3.png',
    club_table_for4_c3: club.resPath + 'table/table_for_4_c3.png',
    club_table_for5: club.resPath + 'table/table_for_5.png',
    club_table_for6: club.resPath + 'table/table_for_6.png',
    club_table_for9: club.resPath + 'table/table_for_9.png',
    club_table_chair_0: club.resPath + 'table/table_chair_0.png',
    club_table_chair_1: club.resPath + 'table/table_chair_1.png',

    btn_close: club.resPath + 'club/common/btn_cancel.png',

    club_icon_wanfa1: club.resPath + 'table/icon_wanfa1.png',
    club_icon_wanfa2: club.resPath + 'table/icon_wanfa2.png',
    club_icon_wanfa3: club.resPath + 'table/icon_wanfa3.png',
    club_icon_wanfa4: club.resPath + 'table/icon_wanfa4.png',
    club_icon_wanfa5: club.resPath + 'table/icon_wanfa5.png',

    club_icon_first: club.resPath + 'table/icon_first.png',
    club_icon_second: club.resPath + 'table/icon_second.png',
    club_icon_third: club.resPath + 'table/icon_third.png',


    club_guide_1: club.resPath + 'guide/club_guide_1.jpg',
    club_guide_2: club.resPath + 'guide/club_guide_2.jpg',
    club_guide_3: club.resPath + 'guide/club_guide_3.jpg',
    club_guide_4: club.resPath + 'guide/club_guide_4.jpg',

    btn_addGroup: club.resPath + 'group/btn_addGroup.png',
    btn_green: club.resPath + 'group/btn_green.png',

    sp_qinyouquan_ren_json: club.resPath + 'spine/qinyouquan_ren/qinyouquan_ren.json',
    sp_qinyouquan_ren_atlas: club.resPath + 'spine/qinyouquan_ren/qinyouquan_ren.atlas',
    sp_qinyouquan_ren_png: club.resPath + 'spine/qinyouquan_ren/qinyouquan_ren.png',

    club_activity_bg: club.resPath + 'activity/activity_bg.png',
    club_activity_close: club.resPath + 'activity/btn_close.png',

    clublistBG1: club.resPath+'ClubMain/image/liebiao01.png',
    clublistBG2: club.resPath+'ClubMain/image/liebiao02.png',
};

/**
 * object对象 差异覆盖
 * 如果 新数据和旧数据有相同key则新数据覆盖旧数据
 * 如果 旧数据的key  新数据里没有 则保留
 * @param oldObj
 * @param newObj
 * @constructor
 */
var objectDifferenceCover = function (oldObj, newObj) {
    for (var key in newObj) {
        oldObj[key] = newObj[key];
    }
    return oldObj;
};